# CMakeLists.txt for cpp_basic

# Create executable for test_Initialization
add_executable(test_initialization test_Initialization.cpp)
add_executable(test_fwd test_fwd.cpp)

# Set target properties
set_target_properties(test_initialization PROPERTIES
    CXX_STANDARD 20
    CXX_STANDARD_REQUIRED ON
)

set_target_properties(test_fwd PROPERTIES
    CXX_STANDARD 20
    CXX_STANDARD_REQUIRED ON
)

# Add custom target to run the executable
add_custom_target(run_test_initialization
    COMMAND test_initialization
    DEPENDS test_initialization
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    COMMENT "Running test_initialization executable"
)

add_custom_target(run_test_fwd
    COMMAND test_fwd
    DEPENDS test_fwd
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    COMMENT "Running test_fwd executable"
)
